package com.kefu.exam.vo;

import javax.validation.constraints.Size;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractInsertVo;
import com.kefu.exam.model.ExamPaperSubject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author xy
 * @date 2022/02/28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "")
public class ExamPaperSubjectInsertVo extends AbstractInsertVo<ExamPaperSubject> {
    @Size(max = 32)
    @ApiModelProperty(value = "试卷ID")
    private String paperId;
    @Size(max = 32)
    @ApiModelProperty(value = "试题ID")
    private String subjectId;

    @Override
    public ExamPaperSubject convert() {
        ExamPaperSubject info = new ExamPaperSubject();
	    info.setPaperId(paperId);
	    info.setSubjectId(subjectId);
	    return info;
	}
}